package com.example.kt_base.s4

//TODO 62.Kotlin语言的Set创建与元素获取
fun main() {

    val set= setOf("张三","李明","陈明","李明")

    println(set.elementAt(2))

    println(set.elementAtOrElse(3){"越界了"})


    println(set.elementAtOrNull(3)?:"越界了啦")
}
